package lab01;

public class Test11 {
    private static boolean isZhiShu(int i){
        boolean cont = true ;
        if(i==2 ){
            cont = true;
        }
        for(int a=2;a<i;a++){
            if(i%a == 0){
                cont = false;
            }
            cont = true;
        }
        return cont;
    }

    public static void main(String[] args) {
        int a,k=0;
        for ( a=2;a<101;a++){
            if (isZhiShu(a)){
                k++;
                System.out.println(a+" ");
                if (k%5 == 0){
                    System.out.println("/n");
                }
            }
        }
    }
}
